<h1>Listing movies</h1>
<p>Click <a href="http://localhost:3000/tags">here</a> for tags.</p>
<table>
    <tr>
        <th>Title</th>
        <th>Year</th>
        <th>Language</th>
        <th>Rating</th>
        <th>Seen</th>
    </tr>

    <% for movie in @movies %>
        <tr>
            <td><%= h movie.title %></td>
            <td><%= h movie.year %></td>
            <td><%= h movie.language %></td>
            <td><%= h movie.rating %></td>
            <td><%= h movie.seen %></td>
            <td><%= link_to 'Show', movie %></td>
            <td><%= link_to 'Edit', edit_movie_path(movie) %></td>
            <td><%= link_to 'Destroy', movie, :confirm => 'Are you sure?', :method => :delete %></td>
        </tr>
    <% end %>
</table>

<br/>

<%= link_to 'New movie', new_movie_path %>
